<!doctype html>
<html class=" "><head>
    <meta charset="UTF-8">
    <meta http-equiv="content-language" content="zh-CN">
    <meta content="telephone=no" name="format-detection">
    <meta content="IE=EmulateIE11" http-equiv="X-UA-Compatible">
    <title>欢迎登录代理商管理系统</title>

    <script src="../public/all/js/jquery-3.1.1.min.js"></script>
    <script src="../public/all/js/amazeui.min.js"></script>
    <script src="../public/all/js/jquery.cookie.js"></script>
    <script src="js/referee.min.js"></script>

    <!-- debug only -->
    <script src="../public/all/js/superClipBoard.min.js"></script>
    <script src="../public/all/layer/layer.js"></script>
    <script src="../public/all/js/zxf_page.js"></script>
    <script src="../public/all/js/page_list.js"></script>
    <script src="../public/all/js/classify.js"></script>

    <script src="../public/all/js/context.js"></script>
    <script src="../public/all/js/util.js"></script>
    <script src="../public/all/js/cmd.js"></script>
    <script src="../public/all/js/me.js"></script>
    
    <script src="../public/all/js/rule/rule.js"></script>
    <script src="../public/all/js/rule/pk10_rule.js"></script>
    <script src="../public/all/js/rule/bjpk10_rule.js"></script>
    <script src="../public/all/js/rule/zypk10_rule.js"></script>
    <script src="../public/all/js/rule/ssc_rule.js"></script>
    <script src="../public/all/js/rule/cqssc_rule.js"></script>
    <script src="../public/all/js/rule/tjssc_rule.js"></script>
    <script src="../public/all/js/rule/xjssc_rule.js"></script>
    <script src="../public/all/js/rule/zyssc_rule.js"></script>
    <script src="../public/all/js/rule/ffcqq_rule.js"></script>
    <script src="../public/all/js/rule/eleven5_rule.js"></script>
    <script src="../public/all/js/rule/gd115_rule.js"></script>
    <script src="../public/all/js/rule/zy115_rule.js"></script>
    <script src="../public/all/js/rule/ten_rule.js"></script>
    <script src="../public/all/js/rule/cqkl10_rule.js"></script>
    <script src="../public/all/js/rule/gdkl10_rule.js"></script>
    <script src="../public/all/js/rule/zykl10_rule.js"></script>
    <script src="../public/all/js/rule/kuai3_rule.js"></script>
    <script src="../public/all/js/rule/jsk3_rule.js"></script>
    <script src="../public/all/js/rule/zyk3_rule.js"></script>
    <script src="../public/all/js/rule/lhc_rule.js"></script>
    <script src="../public/all/js/rule/kl8_rule.js"></script>
    <script src="../public/all/js/rule/bjkl8_rule.js"></script>
    <script src="../public/all/js/rule/zykl8_rule.js"></script>

    <script src="js/agent.js"></script>
    <!-- debug only end -->

    <link rel="stylesheet" href="../public/all/css/amazeui.min.css">
    <link rel="stylesheet" href="../public/all/css/page_list.css">
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/agent.css">

    <style type="text/css">@keyframes resizeanim { from { opacity: 0; } to { opacity: 0; } } 
      .resize-triggers { animation: 1ms resizeanim; visibility: hidden; opacity: 0; }
      .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1 }
      .resize-triggers > div { background: #eee; overflow: auto; }
      .contract-trigger:before { width: 200%; height: 200%; }</style>
</head>

<body>
    <div class="header">
        <div class="wrap clearfix">
            <div class="logo fl"><img src="" alt=""></div> 
            <div class="userinfo fr">
                <i class="icon-head"></i> <span></span> 
                <a href="javascript:void(0);"><img src="images/btn_lgout.png" alt=""></a>
            </div>
        </div>
    </div>
    
    <div class="main clearfix">
        <div class="nprogress-container"></div> 
        <div class="leftmenu fl">
            <div class="tit"><i class="icon-drop"></i>菜单</div> 
            
            <div id="menu" class="menu">
                <div class="item router-link-exact-active active" value="index">
                    <i class="icon-book"></i><span>代理商首页</span>
                </div>
                <div class="item" value="member">
                    <i class="icon-book"></i><span>会员管理</span>
                </div>
                <div class="item" value="stat">
                    <i class="icon-book"></i><span>会员报表</span>
                </div>
                <div class="item" value="money">
                    <i class="icon-book"></i><span>佣金提现</span>
                </div>
                <div class="item" value="bet"><i class="icon-book"></i><span>投注记录</span></div>
                <div class="item" value="balance"><i class="icon-book"></i><span>账变记录</span></div>
                <div class="item" value="profile"><i class="icon-book"></i><span>资料修改</span></div>
            </div>&gt;
        </div> 
        
        <div class="rightbox fl">
            <div class="agent-tit">位置：<span id="pagePos">代理商首页</span></div> 
            
            <div id="agentContent"></div>
        </div>
    </div>
</body></html>
<script>
    var m = urlInfo.params.m || 'index';
    $("#menu .item").removeClass("active");
    $("#menu .item[value='" + m + "']").addClass("active");
    $("#pagePos").html($("#menu .active span").html());
    switch_page(m, $("#agentContent"));

    $("#menu .item").click(function(e) {
        var m = $(e.currentTarget).attr("value");
        switch_page(m, $("#agentContent"));
        $("#menu .item").removeClass("active");
        $("#menu .item[value='" + m + "']").addClass("active");
        $("#pagePos").html($("#menu .active span").html());
    });

    $(".userinfo a").click(function() {
        if (!confirm("确定退出系统？")) return;
        ME.logout(function() {
            window.location.href = "index.html";
        })
    });

    // LOGO
    Classify.queryExt("settings", "logo-big", false, "", function(v) {
        if (v) {
            var url = context.config.url.replace(":9090", "");
            if (urlInfo.params.try == 1) url = context.config.tryUrl.replace(":9090", "");
            $(".header .logo img").attr("src", url + v);
        }
    });

    ME.loginFile = "index";
    ME.assureConnect();
    ME.query(function() {
        $(".header .userinfo span").html(context.user.user.mobile);
    });
</script>